<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/>

    <title>成功企业家俱乐部</title>

    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/style.css"/>
    <script src="js/jquery-1.7.2.js"></script>
    <script src="js/X1Common.js"></script>
    <script src="js/template.js"></script>
    <script src="js/allacitve.js"></script>
<script type="text/javascript">
    var url=location.search;
    var Request = new Object();
    if(url.indexOf("?")!=-1){
        var str = url.substr(1)　//去掉?号
        strs = str.split("&");
        for(var i=0;i<strs.length;i++){
            Request[strs[i ].split("=")[0]]=unescape(strs[i].split("=")[1]);
        }
    }
    var id1 = Request["id"];
    function geetImg(imgUrl, n) {
        if(imgUrl == '') {
            return null;
        }
        if(n=='') {
            return imgUrl;
        }
        var imgurls = new Array();
        imgurls = imgUrl.split(',');
        if(n>imgurls.length+1) {
            alert('传递的参数有误,图片取数大于图片个数!\n注意：取数索引从1开始');
        } else {
            return imgurls[n-1];
        }
        return '';
    }
  /* $(function(){
       $.ajax({
           url: "hxclub/activity/byIdContent.do",
           async: false,
           type : "get",
           dataType : "json",
           data:{id:id1},
           success : function(data){console.info(data)
               var $varietyContent = $('#content'), varietyHtml = template('detail', data);
               $varietyContent.html(varietyHtml);
             /!*  var $varietyContent = $('#nav_fangwen'), varietyHtml = template('nav_list', data);
               $varietyContent.html(varietyHtml);*!/
               $(".gwant").click(function(){
                   alert("请访pc官网进行报名")
                 /!*  $.ajax({
                       url: "hxclub/sys/heart.do",
                       async: false,
                       type : "post",
                       dataType : "json",
                       success:function(d){
                           if(d.success){

                               alert(d.data)
                               if(d.data == "no"){
                                   alert("该活动已经过期")
                                  /!* $(".timeout p").html("该活动已过期");
                                   $(".register,.timeout").show();
                                   $(".timeout .sure").mousedown(function(){
                                       $(".sure img").attr("src","images/galert3.png");
                                   });
                                   $(".timeout .sure").mouseup(function(){
                                       $(".sure img").attr("src","images/galert1.png");
                                       $(".timeout,.register").hide();
                                   });*!/
                               } else {
                                   /!*$(".register,.center").show();*!/
                               }
                           }
                           else{
                               alert("请先登录后再报名");
                               window.location.href = 'login.html?redirectUrl=allactive.html?id='+id1;
                              /!* $(".register,.login").show();
                               $(".login .less").mousedown(function(){
                                   $(".less img").attr("src","images/galert4.png");
                               });
                               $(".login .less").mouseup(function(){
                                   $(".less img").attr("src","images/galert2.png");
                               });
                               $(".login .del").click(function(){
                                   $(".login,.register").hide();
                               });
                               $(".login .sure").mousedown(function(){
                                   $(".sure img").attr("src","images/galert3.png");
                               });
                               $(".login .sure").mouseup(function(){
                                   $(".sure img").attr("src","images/galert1.png");
                                   window.location.href = 'login.html?redirectUrl=allactive.html?id='+id1;
                               });*!/

                           }
                       }
                   });*!/
               })
           }
       });
       $("#l_img img").mousedown(function(){
           $(this).attr("src","images/gWant1.png");
       });
       $("#l_img img").mouseup(function(){
           $(this).attr("src","images/gWant.png");
       });
   })*/
</script>

</head>
<body id="xPageSH" style="display: none">


<div class="X3Wrap1">
    <div class="xCont" id="xCont">
<div class="xCont1" id="content">
    <script id="detail" type="text/html">
        {{each data as value i}}
            <h2 class="X3H2">{{value.title}}
                </h2>
        <div id="l_img">
        <img class="gwant" src="images/gWant.png" alt=""/>
            </div>
</div>
            <div class="X3Articl">
                <div class="l_date"><i>当日报道:</i> <ul id="drbd">

                </ul>
                </div>
                <input id="shijian" value="{{value.friday}}" type="hidden" />
                {{#value.content}}
            </div>
        {{/each}}
    </script>


    </div>
</div>

    <script id="detai2" type="text/html">
        {{each data.result as value i}}
        <li><a href="videodetails.html?id={{value.id}}">{{value.publishTime.substring(0,10)}}</a></li>
        {{/each}}
    </script>
<!--填充底部导航使用-->
<div id="footer">

</div>

<!--添加页面底部导航-->
<script>
    $.ajax({
        url:"l_footer.html",
        async:false,
        success:function(html){
            $("#footer").append(html);
        }
    })
</script>
</body>
</html>